package com.hmall.common.Feign.UserFeign;

import com.hmall.user.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("user-service")
public interface Userfeign {
    @GetMapping("/address/{id}")
    public Address findAddressById(@PathVariable("id") Long id);
    @GetMapping("/address/uid/{userId}")
    public List<Address> findAddressByUserId(@PathVariable("userId") Long userId);
}
